﻿using System;
using Model01.Objects;
using Model01.Routes;

namespace Model01.Transportation
{
    public class PublicTransport : Car
    {
        #region Fields

        private Route route = new Route();

        #endregion

        /// <summary>
        ///
        /// </summary>
        /// <param name="x">X coordinate of the car</param>
        /// <param name="y">Y coordinate of the car</param>
        /// <param name="size">Size of the car</param>
        public PublicTransport(int x, int y, Size size) : base(x, y, size) { }

        #region Properties

        /// <summary>
        /// Gets or sets the route of car.
        /// </summary>
        public Route Route
        {
            get { return route; }
            set { route = value; }
        }

        #endregion

        #region Methods

        /// <summary>
        /// Makes a car go to it's route.
        /// </summary>
        public override void Go()
        { }

        /// <summary>
        /// Makes a car go to it's destination point.
        /// </summary>
        /// <param name="destination">Model01.Objects.Point where does the car go.</param>
        protected override void GoTo(Point destination)
        { }

        #endregion
    }
}
